﻿using AutofacProject.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace AutofacProject.Controllers
{
    public class HomeController : Controller
    {
        private readonly Icar _car;

        // GET: Home
        public HomeController(Icar car)
        {
            int X = 0;
            // Constructor logic can be added here if needed
            _car = car;
        }
        public ActionResult Index()
        {
           
            return Content(_car.Run());
        }
    }
}